/*
 * @Descripttion: 退房
 * @version: 1.0
 * @Author: 狸猫
 * @Date: 2024-05-07 13:53:57
 * @LastEditors: 狸猫
 * @LastEditTime: 2024-05-11 11:30:28
 */
import request from "@/utils/request";

// 查询短租订单列表
export function listCheck(query) {
  return request({
    url: '/enterprise/checkOutOrder/list',
    method: 'get',
    params: query,
  })
}
// 查看退房中退房金额详细信息
export function checkingOut(orderId) {
  return request({
    url: '/enterprise/order/order/apartment/checkingOut/'+orderId,
    method: 'get'
  })
}
// 查询订单每日房费详情列表
export function expensesList(query) {
  return request({
    url: '/enterprise/order/expenses/list',
    method: 'get',
    params:query
  })
}
// 退款明细列表查询
export function checkOutSubOrderList(query) {
  return request({
    url: '/enterprise/checkOutSubOrder/list',
    method: 'get',
    params:query
  })
}

// 再次退款
export function againRefund(data) {
  return request({
    url: '/enterprise/checkOutSubOrder/refund',
    method: 'post',
    data:data
  })
}

